@extends('admin.layouts.master')
@section('content')
    <table class="mdui-table mdui-table-hoverable">
        <thead>
        <tr>
            <th>ID</th>
            <th>网站视频的URL</th>
            <th>网站视频的说明</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        @foreach($videos as $video)
            <tr>
                <td>{{$video->id}}</td>
                <td>{{$video->video}}</td>
                <td>{{$video->content}}</td>

                <td>
                    <a href="{{url('admin/video/edit',['id'=>$video->id])}}"
                       class="mdui-btn mdui-btn-dense mdui-color-blue mdui-ripple">修改</a>

                    <a href="{{url('admin/video/destroy',['id'=>$video->id])}}"
                       class="mdui-btn mdui-btn-dense mdui-color-blue mdui-ripple"
                       onclick="if(confirm('确定删除吗?')==false) return false;">删除</a>
                </td>
            </tr>
        @endforeach
        </tbody>
    </table>
@endsection